<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.thinkphp.cn>
// +----------------------------------------------------------------------

/**
 * 前台配置文件
 * 所有除开系统级别的前台配置
 */
return array(
    //数据库表前缀
    'DB_PREFIX' => 'ad_',

    //错误码
    'ERROR_CODE'    => [
        1       => '请求成功',
        102     => '登录错误',
        104     => '未授权访问',
        106     => '未授权IP访问',
        108     => '网站维护中...',
        110     => '用户不存在',
        112     => '密码错误',
        114     => '用户名已被注册',
        116     => '注册失败',
        118     => '用户不存在或已被禁用',
        120     => '数据写入失败',
        122     => '数据读取失败',
        124     => '数据更新失败'
    ],
    
    //SESSION 和 COOKIE 配置
    'SESSION_PREFIX' => 'xinletu_admin_',   //session前缀
    'COOKIE_PREFIX'  => 'xinletu_admin_',   // Cookie前缀 避免冲突
    'VAR_SESSION_ID' => 'session_id',	    //修复uploadify插件无法传递session_id的bug

    // 加载扩展配置文件
    'LOAD_EXT_CONFIG' => 'config_field', 
);
